export function getStorageSync(key){
	return uni.getStorageSync(key)
}

export function setStorageSync(key,data){
	uni.setStorageSync(key,data)
}

export function removeStorageSync(key){
	uni.removeStorageSync(key)
}


const Storage = {
	getStorageSync,
	setStorageSync,
	removeStorageSync,
	install:(Vue)=>{
		Vue.prototype.$getStorageSync = getStorageSync
		Vue.prototype.$setStorageSync = setStorageSync
		Vue.prototype.$removeStorageSync = removeStorageSync
	}
}

export default Storage